﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;
namespace BUS
{
    public class ChiTietPhieuNhapBUS
    {
        ChiTietPhieuNhapDAO ctpndao = new ChiTietPhieuNhapDAO();
        public DataTable LayDSChiTietPhieuNhap(int maphieunhap)
        {
            return ctpndao.LayDSChiTietPhieuNhap(maphieunhap);
        }
        public ChiTietPhieuNhapDTO LayMotChiTietPhieuNhapSach(int machitietphieunhap)
        {
            return ctpndao.LayMotChiTietPhieuNhapSach(machitietphieunhap);
        }
        public bool CapNhatChiTietPhieuNhapSach(ChiTietPhieuNhapDTO ctpndto)
        {
            return ctpndao.CapNhatChiTietPhieuNhapSach(ctpndto);
        }
        public bool XoaChiTietPhieuNhapSach(int machitietphieunhap)
        {
            return ctpndao.XoaChiTietPhieuNhapSach(machitietphieunhap);
        }
        public bool ThemChiTietPhieuNhapSach(ChiTietPhieuNhapDTO ctpndto)
        {
            return ctpndao.ThemChiTietPhieuNhapSach(ctpndto);
        }
        public bool KiemTraSachTrongPhieuNhap(int masach)
        {
            return ctpndao.KiemTraSachTrongPhieuNhap(masach);
        }
    }
}
